home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / bison.arc / BISON.BUG < prev    next >
Text File  |  1988-07-11  |  5KB  |  139 lines

  1. BABYL OPTIONS:
  2. Version: 5
  3. Labels:
  4. Note:   This is the header of an rmail file.
  5. Note:   If you are seeing it in rmail,
  6. Note:    it means the file has no messages in it.
  7. 1,forwarded,,
  8. Summary-line:  1-Apr                      tower  #["ASC::GUTHERY%slb-test.csnet"@RELAY.CS.NET: Bison Bug?]
  9. Received: by PREP.AI.MIT.EDU; Wed, 1 Apr 87 20:10:49 EST
  10. Date: Wed, 1 Apr 87 20:10:49 EST
  11. From: tower (Leonard H. Tower Jr.)
  12. Message-Id: <8704020110.AA00495@prep.ai.mit.edu>
  13. To: rms
  14. Subject: ["ASC::GUTHERY%slb-test.csnet"@RELAY.CS.NET: Bison Bug?]
  15. Reply-To: tower@prep.ai.mit.edu
  16. Organization: Project GNU, Free Software Foundation,
  17.         1000 Mass. Ave., Cambridge, MA  02138, USA   +1 (617) 876-3296
  18. Home: 36 Porter Street, Somerville, MA  02143, USA   +1 (617) 623-7739
  19. Status: O
  20.  
  21. *** EOOH ***
  22. Date: Wed, 1 Apr 87 20:10:49 EST
  23. From: tower (Leonard H. Tower Jr.)
  24. To: rms
  25. Subject: ["ASC::GUTHERY%slb-test.csnet"@RELAY.CS.NET: Bison Bug?]
  26. Reply-To: tower@prep.ai.mit.edu
  27. Organization: Project GNU, Free Software Foundation,
  28.         1000 Mass. Ave., Cambridge, MA  02138, USA   +1 (617) 876-3296
  29. Home: 36 Porter Street, Somerville, MA  02143, USA   +1 (617) 623-7739
  30.  
  31. Date:     Wed, 1 Apr 87 14:12 EDT
  32. From: "guthery%asc%slb-doll.csnet@relay.cs.net" <"ASC::GUTHERY%slb-test.csnet"@RELAY.CS.NET>
  33. To: gnu@PREP.AI.MIT.EDU
  34. Subject:  Bison Bug?
  35. X-Vms-To: SDR::IN%"gnu@prep.ai.mit.edu"
  36.  
  37. In the build_relations function in the lalr.c file in GNU Bison,
  38. the code
  39.  
  40.         length--;
  41.         done = 0;
  42.         while(!done) ...
  43.  
  44. should, I believe, be replaced with
  45.  
  46.         length--;
  47.         done = 0;
  48.         if(length) while(!done) ...
  49.  
  50. otherwise things like
  51.  
  52.         list:    /* empty */ | item | list item;
  53.  
  54. produce an internal error in map_goto.
  55.  
  56.                         Cheers, Scott
  57.  
  58.  
  59.  
  60. 1,,
  61. Return-Path: <rms@wheaties.ai.mit.edu>
  62. Received: by frosted-flakes.ai.mit.edu; Wed, 23 Sep 87 12:49:33 EDT
  63. Date: Wed, 23 Sep 87 12:49:33 EDT
  64. From: rms@wheaties.ai.mit.edu (Richard Stallman)
  65. Message-Id: <8709231649.AA18034@frosted-flakes.ai.mit.edu>
  66. To: rms
  67. Subject: Bison
  68.  
  69. *** EOOH ***
  70. Return-Path: <rms@wheaties.ai.mit.edu>
  71. Date: Wed, 23 Sep 87 12:49:33 EDT
  72. From: rms@wheaties.ai.mit.edu (Richard Stallman)
  73. To: rms
  74. Subject: Bison
  75.  
  76. Bison should have a feature to specify a prefix for all the names.
  77.  
  78. 1,answered,,
  79. Received: from prep.ai.mit.edu by wheaties.ai.mit.edu; Thu, 31 Dec 87 00:31:49 EST
  80. Received: by PREP.AI.MIT.EDU; Thu, 31 Dec 87 00:26:53 EST
  81. Received: from balance.aca.mcc.com by MCC.COM with TCP; Wed 30 Dec 87 23:32:14-CST
  82. Date: Wed, 30 Dec 87 23:33:06 cst
  83. From: tiemann@mcc.com (Michael Tiemann)
  84. Posted-Date: Wed, 30 Dec 87 23:33:06 cst
  85. Message-Id: <8712310533.AA17290@balance.aca.mcc.com>
  86. Received: by balance.aca.mcc.com (4.12/ACA-V2.1) 
  87.     id AA17290; Wed, 30 Dec 87 23:33:06 cst
  88. To: rms@prep.ai.mit.edu
  89. Subject: -fomit-frame-pointer (and YYEMPTY)
  90. Status: RO
  91.  
  92. *** EOOH ***
  93. Date: Wed, 30 Dec 87 23:33:06 cst
  94. From: tiemann@mcc.com (Michael Tiemann)
  95. Posted-Date: Wed, 30 Dec 87 23:33:06 cst
  96. To: rms@prep.ai.mit.edu
  97. Subject: -fomit-frame-pointer (and YYEMPTY)
  98.  
  99. YYEMPTY is true iff there is no current lookahead symbol.  Such a case
  100. arises after a shift, before the next call to yylex.  Note that often,
  101. reductions can be performed in the absense of any lookahead symbols.
  102. By not reading the next symbol immediately after shifting, it is
  103. possible for the parser to change the state of the lexical analyzer
  104. before it goes after the next input symbol.
  105.  
  106. On the -fomit-frame-pointer front, I could not reproduce the bug
  107. (which I only observed as a segmentation violation).  When I could not
  108. reproduce it on SB-Prolog, I recompiled GCC with itself, using
  109. -fomit-frame-pointer.  It did not blink.  The total speed improvement
  110. was about 1-2%.  However, someone is running a large experiment on the
  111. Balance which is keeping it from giving me "clean" readings.  Here are
  112. the total times for each complete make:
  113.  
  114. gcc -O:                3026.3u 757.1s 1:05:37 96% 3396+3848io 639pf+0w
  115. gcc -O -fomit-frame-pointer:    2981.8u 749.0s 1:04:41 96% 3415+3810io 628pf+0w
  116.  
  117. These include the assembly and link times.  Here are the two compiling
  118. the file expr.c:
  119.  
  120. -O -fomit-frame-pointer                -O alone
  121. time in parse: 47.660000        time in parse: 47.770000        
  122. time in jump: 5.590000            time in jump: 5.830000          
  123. time in cse: 13.860000            time in cse: 14.120000          
  124. time in loop: 1.240000            time in loop: 1.230000          
  125. time in flow: 15.940000            time in flow: 15.980000         
  126. time in combine: 4.320000        time in combine: 4.520000       
  127. time in local-alloc: 11.870000        time in local-alloc: 12.150000  
  128. time in global-alloc: 15.310000        time in global-alloc: 15.840000 
  129. time in final: 8.850000            time in final: 9.410000         
  130. time in varconst: 0.510000        time in varconst: 0.690000      
  131. time in symout: 0.000000        time in symout: 0.000000        
  132. time in dump: 0.000000            time in dump: 0.000000          
  133.  
  134. Michael
  135.